package com.sanjiahantang.ythshopping.activity.me;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.sanjiahantang.ythshopping.R;
import com.sanjiahantang.ythshopping.activity.BaseActivity;
import com.sanjiahantang.ythshopping.config.ConfigValue;
import com.sanjiahantang.ythshopping.config.SPConfig;
import com.sanjiahantang.ythshopping.utils.SPUtils;

/**
 * Created by Administrator on 2018/3/27.
 */

public class AppointmentSuccessActivity extends BaseActivity implements View.OnClickListener {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_appointment_success);
        findViewById(R.id.fl_Left).setOnClickListener(this);
        findViewById(R.id.btnBack).setOnClickListener(this);
        TextView title = (TextView) findViewById(R.id.title);
        title.setText("系统提示");
        TextView tvInfo = (TextView) findViewById(R.id.tvInfo);
        String info = getIntent().getStringExtra("info");
        tvInfo.setText(info);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.fl_Left:case R.id.btnBack:
                finish();
                break;
        }
    }

    public static void startActivity(Context context,String info){
        context.startActivity(new Intent(context,AppointmentSuccessActivity.class).putExtra("info",info));
    }
}
